// 仓库
import request from '@/utils/request'
// 分页查询仓库
export const searchStorehouse = (params) => {
  return request({
    url: '/warehouse/page',
    params
  })
}
// 新增仓库
export const addStorehouse = (data) => {
  return request({
    url: '/warehouse',
    method: 'POST',
    data
  })
}
// 删除仓库
export const delStorehouse = (data) => {
  return request({
    url: '/warehouse',
    method: 'DELETE',
    data
  })
}
// 修改仓库
export const modifyStorehouse = (data) => {
  return request({
    url: '/warehouse',
    method: 'PUT',
    data
  })
}
// 查询全部仓库
export const warehouseAll = (params) => {
  return request({
    url: '/warehouse/list',
    params
  })
}
